`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    16:24:37 10/21/2012 
// Design Name: 
// Module Name:    Control_Unit 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////

module Control_Unit(clk_i, reset_sync, startGame, up_sync, down_sync, increase_Incrash, ini_speed_x, ini_speed_y,
ball_x, ball_y, paddle_y, gameOver
);
   input clk_i,reset_sync,startGame,up_sync,down_sync,increase_Incrash;
	input [5:0] ini_speed_x, ini_speed_y;
	output [9:0] ball_x, ball_y;
	output gameOver;
	output  [9:0] paddle_y;
	wire  [9:0] paddle_yfms;
	
	Paddle_Unit Paddle(clk_i, reset_sync, up_sync, down_sync, paddle_y); // cambia posicion de paddle
	
	MajorFSM FSMControl(clk_i, reset_sync, startGame, increase_Incrash, ini_speed_x, ini_speed_y,
		ball_x, ball_y, paddle_y, gameOver);	

	
	
											 
	

endmodule

